/* Include */
#include "HAL.h"

/* Define */
#define RS485_baudRate 115200
#define RS485_txPin    22
#define RS485_rxPin    21

/* Serial RS485 class, using serial 1 */
HardwareSerial HAL_RS485(1);


/* RS485 init */
void HAL_RS485_init()
{
    HAL_RS485.begin(RS485_baudRate, SERIAL_8N1, RS485_rxPin, RS485_txPin);
    
    HAL_RS485.println("[HAL] HAL_RS485 initialized");
    HAL_LOG.println("[HAL] HAL_RS485 initialized");
}

